package org.springsecuritylearn.repository.domain;

import lombok.Data;

import javax.persistence.Basic;
import javax.persistence.MappedSuperclass;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.util.Date;


@Data
@MappedSuperclass
public class CreatAndUpdateTime {



    @Temporal(TemporalType.TIMESTAMP)
    private Date creatTime=new Date();


    @Temporal(TemporalType.TIMESTAMP)
    private Date updateTime;
}
